package com.laowang.project.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhIntroMapper;
import com.laowang.project.system.domain.MyCyhIntro;
import com.laowang.project.system.service.MyCyhIntroService;

/**
 * h5车友会介绍Service业务层处理
 *
 * @author laowang
 * @date 2023-10-13
 */
@Service
public class MyCyhIntroServiceImpl implements MyCyhIntroService {
    @Autowired
    private MyCyhIntroMapper myCyhIntroMapper;

    /**
     * 查询h5车友会介绍
     *
     * @param id h5车友会介绍ID
     * @return h5车友会介绍
     */
    @Override
    public MyCyhIntro selectMyCyhIntroById(Integer id) {
        return myCyhIntroMapper.selectMyCyhIntroById(id);
    }

    /**
     * 查询h5车友会介绍列表
     *
     * @param myCyhIntro h5车友会介绍
     * @return h5车友会介绍
     */
    @Override
    public List<MyCyhIntro> selectMyCyhIntroList(MyCyhIntro myCyhIntro) {
        return myCyhIntroMapper.selectMyCyhIntroList(myCyhIntro);
    }

    /**
     * 新增h5车友会介绍
     *
     * @param myCyhIntro h5车友会介绍
     * @return 结果
     */
    @Override
    public int insertMyCyhIntro(MyCyhIntro myCyhIntro) {
                                                                            return myCyhIntroMapper.insertMyCyhIntro(myCyhIntro);
    }

    /**
     * 修改h5车友会介绍
     *
     * @param myCyhIntro h5车友会介绍
     * @return 结果
     */
    @Override
    public int updateMyCyhIntro(MyCyhIntro myCyhIntro) {
                                                                            return myCyhIntroMapper.updateMyCyhIntro(myCyhIntro);
    }

    /**
     * 批量删除h5车友会介绍
     *
     * @param ids 需要删除的h5车友会介绍ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhIntroByIds(Integer[] ids) {
        return myCyhIntroMapper.deleteMyCyhIntroByIds(ids);
    }

    /**
     * 删除h5车友会介绍信息
     *
     * @param id h5车友会介绍ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhIntroById(Integer id) {
        return myCyhIntroMapper.deleteMyCyhIntroById(id);
    }
}
